//
//  LogInNavi.m
//  The_news
//
//  Created by 王凯 on 15/7/17.
//  Copyright (c) 2015年 chenlin. All rights reserved.
//

#import "LogInNavi.h"
#import "AniView.h"
#import "UMSocial.h"

@interface LogInNavi () <UMSocialUIDelegate>
@property (nonatomic, retain) UIView *aniView;
@end

@implementation LogInNavi

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.aniView = [[AniView alloc] initWithFrame:self.view.bounds];
    self.aniView.backgroundColor = [UIColor cyanColor];
    [self.view addSubview:self.aniView];
    [_aniView release];
    
    UIButton *BackButton = [UIButton buttonWithType:UIButtonTypeCustom];
    BackButton.frame = CGRectMake(0, 0, 100, 100);
    BackButton.backgroundColor = [UIColor whiteColor];
    [BackButton addTarget:self action:@selector(back1) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:BackButton];
    
    [UMSocialSnsService presentSnsIconSheetView:self
                                         appKey:@"55ac463267e58ec672002c87"
                                      shareText:@"博闻News"
                                     shareImage:nil
                                shareToSnsNames:[NSArray arrayWithObjects:UMShareToSina,UMShareToTencent,UMShareToRenren, UMShareToSms, UMShareToDouban, UMShareToEmail, UMShareToTwitter, UMShareToFacebook,nil]
                                       delegate:self];
    
}

- (void)back1
{
    NSLog(@"123");
//    [self.navigationController popViewControllerAnimated:YES];
    [self dismissViewControllerAnimated:YES completion:^{
        NSLog(@"返回");
    }];
}







- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
